package com.victualler.core.common.dto;

import java.util.List;

/**
 * @author Guoshichang
 * @since 11:41 on 2018/7/23.
 * @Function  ireport导出封装的通用入参对象
 */
public class JasperReportVO {

    /** ireport模板classPath路径 */
    private String jasperClassPath;

    /** 若模板为excel类型  excelSheet页的名称 */
    private String sheetName;

    /** $P{}对应的对象 */
    private Object parameter;

    /** 模板中detail区$F{}的值对象列表 一条数据对应detail区一条数据*/
    private List<?> modelList;

    public JasperReportVO() {

    }

    public JasperReportVO(String jasperClassPath) {
        this.jasperClassPath = jasperClassPath;
    }

    public JasperReportVO(String jasperClassPath, List<?> modelList) {
        this.jasperClassPath = jasperClassPath;
        this.modelList = modelList;
    }

    public JasperReportVO(String jasperClassPath, Object parameter, List<?> modelList) {
        this.jasperClassPath = jasperClassPath;
        this.parameter = parameter;
        this.modelList = modelList;
    }

    public JasperReportVO(String jasperClassPath, String sheetName, Object parameter, List<?> modelList) {
        this.jasperClassPath = jasperClassPath;
        this.sheetName = sheetName;
        this.parameter = parameter;
        this.modelList = modelList;
    }

    public String getJasperClassPath() {
        return jasperClassPath;
    }

    public void setJasperClassPath(String jasperClassPath) {
        this.jasperClassPath = jasperClassPath;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public Object getParameter() {
        return parameter;
    }

    public void setParameter(Object parameter) {
        this.parameter = parameter;
    }

    public List<?> getModelList() {
        return modelList;
    }

    public void setModelList(List<?> modelList) {
        this.modelList = modelList;
    }
}
